* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #2c3e50, #34495e);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ecf0f1;
  overflow: hidden;
}

.game-container {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  padding: 20px;
  max-width: 900px;
  width: 100%;
  position: relative;
}

.game-title {
  text-align: center;
  margin-bottom: 20px;
  padding: 20px;
  background: linear-gradient(90deg, #e74c3c, #c0392b);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.game-title h1 {
  font-size: 2.5em;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 10px;
}

.game-title p {
  font-size: 1.2em;
  opacity: 0.9;
}

.game-canvas-container {
  position: relative;
  margin-bottom: 20px;
}

#gameCanvas {
  display: block;
  margin: 0 auto;
  border: 3px solid #e74c3c;
  border-radius: 10px;
  background: #34495e;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  cursor: crosshair;
}

.game-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(90deg, #2c3e50, #34495e);
  border-radius: 10px;
  margin-top: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.status-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1em;
  font-weight: bold;
}

.status-label {
  color: #bdc3c7;
}

#score {
  color: #f39c12;
  font-size: 1.2em;
}

#lives {
  font-size: 1.3em;
}

#grenades {
  font-size: 1.3em;
}

/* 道具强化状态栏样式 */
.powerup-status {
  background: rgba(52, 73, 94, 0.9);
  border-radius: 10px;
  padding: 15px;
  margin-top: 10px;
  border: 2px solid #3498db;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.powerup-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border-left: 4px solid #3498db;
  animation: fadeIn 0.5s ease-in;
}

.powerup-item:last-child {
  margin-bottom: 0;
}

.powerup-icon {
  font-size: 1.2em;
  margin-right: 8px;
  min-width: 20px;
}

.powerup-text {
  color: #ecf0f1;
  font-weight: bold;
  font-size: 0.9em;
  flex-grow: 1;
}

.powerup-progress-container {
  width: 60px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  margin-left: 10px;
}

.powerup-progress {
  height: 100%;
  background: linear-gradient(90deg, #3498db, #2980b9);
  border-radius: 3px;
  transition: width 0.3s ease;
  animation: pulse 2s infinite;
}

/* 不同道具类型的颜色 */
#adrenalineStatus {
  border-left-color: #3498db;
}

#vestStatus {
  border-left-color: #27ae60;
}

#dynamiteStatus {
  border-left-color: #f39c12;
}

.game-controls {
  background: rgba(52, 73, 94, 0.8);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.control-section h3 {
  color: #e74c3c;
  margin-bottom: 15px;
  font-size: 1.3em;
}

.control-section p {
  margin-bottom: 8px;
  font-size: 1em;
  line-height: 1.5;
}

.control-section strong {
  color: #f39c12;
}

.game-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  border-radius: 20px;
}

.game-screen.hidden {
  display: none;
}

.screen-content {
  text-align: center;
  padding: 40px;
  background: rgba(44, 62, 80, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 2px solid #e74c3c;
  max-width: 90%;
}

.screen-content h2 {
  font-size: 2.5em;
  color: #e74c3c;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.screen-content p {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #ecf0f1;
}

.game-btn {
  padding: 15px 40px;
  font-size: 1.2em;
  font-weight: bold;
  background: linear-gradient(90deg, #e74c3c, #c0392b);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  margin: 10px;
}

.game-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  background: linear-gradient(90deg, #c0392b, #a93226);
}

.game-btn:active {
  transform: translateY(-1px);
}

.game-btn.secondary {
  background: linear-gradient(90deg, #7f8c8d, #95a5a6);
}

.game-btn.secondary:hover {
  background: linear-gradient(90deg, #95a5a6, #7f8c8d);
}

/* 武器选择界面样式 */
.weapon-options {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
}

.weapon-option {
  background: rgba(52, 73, 94, 0.8);
  border-radius: 15px;
  padding: 20px;
  width: 200px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.weapon-option:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border-color: #f39c12;
}

.weapon-option.selected {
  border-color: #f39c12;
  background: rgba(243, 156, 18, 0.2);
  box-shadow: 0 0 20px rgba(243, 156, 18, 0.5);
}

.weapon-option h3 {
  color: #f39c12;
  margin-bottom: 15px;
  font-size: 1.5em;
}

.weapon-option p {
  margin: 8px 0;
  text-align: left;
  font-size: 1em;
}

/* 游戏内UI元素 */
.game-ui {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

/* 准星样式 */
.crosshair {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #e74c3c;
  border-radius: 50%;
  pointer-events: none;
  z-index: 200;
}

.crosshair::before,
.crosshair::after {
  content: '';
  position: absolute;
  background: #e74c3c;
}

.crosshair::before {
  width: 2px;
  height: 20px;
  left: 50%;
  top: -10px;
  transform: translateX(-50%);
}

.crosshair::after {
  width: 20px;
  height: 2px;
  top: 50%;
  left: -10px;
  transform: translateY(-50%);
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

@keyframes glow {
  0% {
    box-shadow: 0 0 5px #3498db;
  }
  50% {
    box-shadow: 0 0 20px #3498db;
  }
  100% {
    box-shadow: 0 0 5px #3498db;
  }
}

.glow {
  animation: glow 2s infinite;
}